package ru.pb.game.network.engine.client.packets.sendable;

import ru.pb.game.network.engine.client.packets.GameServerToClientPacket;
import ru.pb.game.objects.model.inventory.emuns.EQMIPEMENT_SLOT;
import ru.pb.game.objects.model.players.Player;

public class PROTOCOL_BATTLE_READYBATTLE_ACK extends GameServerToClientPacket
{
	private Player _player;

	public PROTOCOL_BATTLE_READYBATTLE_ACK(Player p)
	{
		_player = p;
	}

	@Override
	public void writeImpl()
	{
		writeH(3844);
		writeD(9); // Так Надо. И неебёт!
		writeH(_player.getRoom().map_id); // map_id
		writeC(_player.getRoom().stage4v4);
		writeC(_player.getRoom().room_type); // Stage_type
		
		writeD(_player.getInventory().getItemIdBySlot(EQMIPEMENT_SLOT.SLOT_CHAR_RED)); // Основное
		writeD(_player.getInventory().getItemIdBySlot(EQMIPEMENT_SLOT.SLOT_CHAR_BLUE));
		writeD(_player.getInventory().getItemIdBySlot(EQMIPEMENT_SLOT.SLOT_CHAR_HEAD));
		writeD(_player.getInventory().getItemIdBySlot(EQMIPEMENT_SLOT.SLOT_CHAR_ITEM));
		writeD(_player.getInventory().getItemIdBySlot(EQMIPEMENT_SLOT.SLOT_DINO));
	}
}